<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>json_xs - JSON::XS commandline utility - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of JSON-XS - MetaCPAN" href="https://metacpan.org/dist/JSON-XS/releases.rss" />
        <link rel="canonical" href="https://metacpan.org/dist/JSON-XS/view/bin/json_xs" />
        <meta name="description" content="JSON::XS commandline utility" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/json_xs" />
<meta name="twitter:title"       content="json_xs" />
<meta name="twitter:description" content="JSON::XS commandline utility" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="json_xs.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of JSON-XS was released.">
      <span class="relatize">27 Oct 2020 18:06:42 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/JSON-XS">JSON-XS</a>
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/JSON-XS/source/bin/json_xs">Source</a>
    (<a href="https://metacpan.org/dist/JSON-XS/source/bin/json_xs?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/JSON-XS/source/bin">Browse</a>
    (<a href="https://metacpan.org/dist/JSON-XS/source/bin?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/JSON-XS/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/JSON-XS/contribute">How to Contribute</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=JSON-XS">Issues</a>
      (13)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=JSON-XS+4.03" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/J/JSON-XS.html?oncpan=1&amp;distmat=1&amp;version=4.03&amp;grade=2" style="color: #090">5542</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/J/JSON-XS.html?oncpan=1&amp;distmat=1&amp;version=4.03&amp;grade=3" style="color: #900">410</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/J/JSON-XS.html?oncpan=1&amp;distmat=1&amp;version=4.03&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/MLEHMANN/JSON-XS-4.03">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on JSON-XS who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/JSON-XS-4.03/index.html">82.13% Coverage </a>
    </li>
    <li>
      License: unknown
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/JSON-XS/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-4.03.tar.gz">
      Download (<span itemprop="fileSize">84.72KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FMLEHMANN%2FJSON-XS-4.03%2Fbin%2Fjson_xs">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/JSON-XS/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/JSON-XS/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:JSON-XS">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="JSON-XS">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/bin/json_xs&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="MLEHMANN/JSON-XS-4.03"
>4.03
  (MLEHMANN on 2020-10-27)</option>
<optgroup label="BackPAN">'
<option
  
  value="MLEHMANN/JSON-XS-4.02"
>4.02
  (MLEHMANN on 2019-03-06)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.01"
>4.01
  (MLEHMANN on 2019-02-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.0"
>4.0
  (MLEHMANN on 2018-11-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.0_00"
>4.0_00 DEV
  (MLEHMANN on 2018-11-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.04"
>3.04
  (MLEHMANN on 2017-08-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.03"
>3.03
  (MLEHMANN on 2016-11-16)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.02"
>3.02
  (MLEHMANN on 2016-02-26)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.01"
>3.01
  (MLEHMANN on 2013-10-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.0"
>3.0
  (MLEHMANN on 2013-10-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.34"
>2.34
  (MLEHMANN on 2013-05-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.33"
>2.33
  (MLEHMANN on 2012-08-01)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.32"
>2.32
  (MLEHMANN on 2011-08-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.31"
>2.31
  (MLEHMANN on 2011-07-27)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.3"
>2.3
  (MLEHMANN on 2010-08-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.29"
>2.29
  (MLEHMANN on 2010-03-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.28"
>2.28
  (MLEHMANN on 2010-03-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.27"
>2.27
  (MLEHMANN on 2010-01-07)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.26"
>2.26
  (MLEHMANN on 2009-10-10)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.25"
>2.25
  (MLEHMANN on 2009-08-08)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.24"
>2.24
  (MLEHMANN on 2009-05-30)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.232"
>2.232
  (MLEHMANN on 2009-02-22)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2311"
>2.2311
  (MLEHMANN on 2009-02-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.231"
>2.231
  (MLEHMANN on 2008-11-20)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.23"
>2.23
  (MLEHMANN on 2008-09-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2222"
>2.2222
  (MLEHMANN on 2008-07-20)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.222"
>2.222
  (MLEHMANN on 2008-07-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.22"
>2.22
  (MLEHMANN on 2008-07-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.21"
>2.21
  (MLEHMANN on 2008-06-03)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2"
>2.2
  (MLEHMANN on 2008-04-16)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.1"
>2.1
  (MLEHMANN on 2008-03-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.01"
>2.01
  (MLEHMANN on 2007-12-05)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.0"
>2.0
  (MLEHMANN on 2007-12-04)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.53"
>1.53
  (MLEHMANN on 2007-11-13)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.52"
>1.52
  (MLEHMANN on 2007-10-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.51"
>1.51
  (MLEHMANN on 2007-10-13)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.5"
>1.5
  (MLEHMANN on 2007-08-28)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.44"
>1.44
  (MLEHMANN on 2007-08-21)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.43"
>1.43
  (MLEHMANN on 2007-07-26)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.42"
>1.42
  (MLEHMANN on 2007-07-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.41"
>1.41
  (MLEHMANN on 2007-07-10)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.4"
>1.4
  (MLEHMANN on 2007-07-02)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.3"
>1.3
  (MLEHMANN on 2007-06-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.24"
>1.24
  (MLEHMANN on 2007-06-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.23"
>1.23
  (MLEHMANN on 2007-06-06)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.22"
>1.22
  (MLEHMANN on 2007-05-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.21"
>1.21
  (MLEHMANN on 2007-05-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.2"
>1.2
  (MLEHMANN on 2007-05-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.11"
>1.11
  (MLEHMANN on 2007-04-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.1"
>1.1
  (MLEHMANN on 2007-04-04)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.01"
>1.01
  (MLEHMANN on 2007-03-31)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.0"
>1.0
  (MLEHMANN on 2007-03-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.8"
>0.8
  (MLEHMANN on 2007-03-25)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.7"
>0.7
  (MLEHMANN on 2007-03-25)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.5"
>0.5
  (MLEHMANN on 2007-03-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.31"
>0.31
  (MLEHMANN on 2007-03-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.3"
>0.3
  (MLEHMANN on 2007-03-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.2"
>0.2
  (MLEHMANN on 2007-03-22)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.1"
>0.1
  (MLEHMANN on 2007-03-22)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/MLEHMANN/JSON-XS-4.03/diff/' + encodeURIComponent(this.value) + '/bin/json_xs'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="MLEHMANN/JSON-XS-4.03"
>4.03
  (MLEHMANN on 2020-10-27)</option>
<optgroup label="BackPAN">'
<option
  
  value="MLEHMANN/JSON-XS-4.02"
>4.02
  (MLEHMANN on 2019-03-06)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.01"
>4.01
  (MLEHMANN on 2019-02-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.0"
>4.0
  (MLEHMANN on 2018-11-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.0_00"
>4.0_00 DEV
  (MLEHMANN on 2018-11-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.04"
>3.04
  (MLEHMANN on 2017-08-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.03"
>3.03
  (MLEHMANN on 2016-11-16)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.02"
>3.02
  (MLEHMANN on 2016-02-26)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.01"
>3.01
  (MLEHMANN on 2013-10-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.0"
>3.0
  (MLEHMANN on 2013-10-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.34"
>2.34
  (MLEHMANN on 2013-05-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.33"
>2.33
  (MLEHMANN on 2012-08-01)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.32"
>2.32
  (MLEHMANN on 2011-08-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.31"
>2.31
  (MLEHMANN on 2011-07-27)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.3"
>2.3
  (MLEHMANN on 2010-08-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.29"
>2.29
  (MLEHMANN on 2010-03-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.28"
>2.28
  (MLEHMANN on 2010-03-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.27"
>2.27
  (MLEHMANN on 2010-01-07)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.26"
>2.26
  (MLEHMANN on 2009-10-10)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.25"
>2.25
  (MLEHMANN on 2009-08-08)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.24"
>2.24
  (MLEHMANN on 2009-05-30)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.232"
>2.232
  (MLEHMANN on 2009-02-22)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2311"
>2.2311
  (MLEHMANN on 2009-02-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.231"
>2.231
  (MLEHMANN on 2008-11-20)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.23"
>2.23
  (MLEHMANN on 2008-09-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2222"
>2.2222
  (MLEHMANN on 2008-07-20)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.222"
>2.222
  (MLEHMANN on 2008-07-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.22"
>2.22
  (MLEHMANN on 2008-07-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.21"
>2.21
  (MLEHMANN on 2008-06-03)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2"
>2.2
  (MLEHMANN on 2008-04-16)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.1"
>2.1
  (MLEHMANN on 2008-03-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.01"
>2.01
  (MLEHMANN on 2007-12-05)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.0"
>2.0
  (MLEHMANN on 2007-12-04)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.53"
>1.53
  (MLEHMANN on 2007-11-13)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.52"
>1.52
  (MLEHMANN on 2007-10-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.51"
>1.51
  (MLEHMANN on 2007-10-13)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.5"
>1.5
  (MLEHMANN on 2007-08-28)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.44"
>1.44
  (MLEHMANN on 2007-08-21)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.43"
>1.43
  (MLEHMANN on 2007-07-26)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.42"
>1.42
  (MLEHMANN on 2007-07-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.41"
>1.41
  (MLEHMANN on 2007-07-10)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.4"
>1.4
  (MLEHMANN on 2007-07-02)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.3"
>1.3
  (MLEHMANN on 2007-06-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.24"
>1.24
  (MLEHMANN on 2007-06-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.23"
>1.23
  (MLEHMANN on 2007-06-06)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.22"
>1.22
  (MLEHMANN on 2007-05-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.21"
>1.21
  (MLEHMANN on 2007-05-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.2"
>1.2
  (MLEHMANN on 2007-05-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.11"
>1.11
  (MLEHMANN on 2007-04-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.1"
>1.1
  (MLEHMANN on 2007-04-04)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.01"
>1.01
  (MLEHMANN on 2007-03-31)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.0"
>1.0
  (MLEHMANN on 2007-03-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.8"
>0.8
  (MLEHMANN on 2007-03-25)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.7"
>0.7
  (MLEHMANN on 2007-03-25)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.5"
>0.5
  (MLEHMANN on 2007-03-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.31"
>0.31
  (MLEHMANN on 2007-03-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.3"
>0.3
  (MLEHMANN on 2007-03-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.2"
>0.2
  (MLEHMANN on 2007-03-22)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.1"
>0.1
  (MLEHMANN on 2007-03-22)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Types::Serialiser" title="Types::Serialiser" class="ellipsis">Types::Serialiser</a></li>
  <li><a href="https://metacpan.org/pod/common::sense" title="common::sense" class="ellipsis">common::sense</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/json_xs/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=json_xs">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=JSON-XS">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/MLEHMANN/JSON-XS-4.03/view/bin/json_xs">This version</a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/JSON-XS/view/bin/json_xs">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MONS"><img src="https://www.gravatar.com/avatar/c1a14e1edce4c98bf25b19b54fdf7878?d=identicon&amp;s=20" title="MONS" alt="MONS"></a>
<a class="display-all" href="https://metacpan.org/author/HERNAN"><img src="https://www.gravatar.com/avatar/4692a7e916ce61f3d05846d7fe89c4f0?d=identicon&amp;s=20" title="HERNAN" alt="HERNAN"></a>
<a class="display-all" href="https://metacpan.org/author/LTRIANT"><img src="https://www.gravatar.com/avatar/5828c9cd7a9707c16256212b4dfcf9b7?d=identicon&amp;s=20" title="LTRIANT" alt="LTRIANT"></a>
<a class="display-all" href="https://metacpan.org/author/ROBINS"><img src="https://www.gravatar.com/avatar/912ff9b193ab184e3d04c4b9e10bde71?d=identicon&amp;s=20" title="ROBINS" alt="ROBINS"></a>
<a class="display-all" href="https://metacpan.org/author/ADAMJS"><img src="https://www.gravatar.com/avatar/62c7b6e864d6509cff5839543c676614?d=identicon&amp;s=20" title="ADAMJS" alt="ADAMJS"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/JSON-XS/plussers">66 PAUSE users</a>
</div>
<div>
    51 non-PAUSE users
</div>
</div>
    </li>
    <li>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/MLEHMANN" class="author-name">Marc A. Lehmann</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/bin/json_xs&#39;" class="">
<option
  selected
  value="MLEHMANN/JSON-XS-4.03"
>4.03
  (MLEHMANN on 2020-10-27)</option>
<optgroup label="BackPAN">'
<option
  
  value="MLEHMANN/JSON-XS-4.02"
>4.02
  (MLEHMANN on 2019-03-06)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.01"
>4.01
  (MLEHMANN on 2019-02-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.0"
>4.0
  (MLEHMANN on 2018-11-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-4.0_00"
>4.0_00 DEV
  (MLEHMANN on 2018-11-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.04"
>3.04
  (MLEHMANN on 2017-08-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.03"
>3.03
  (MLEHMANN on 2016-11-16)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.02"
>3.02
  (MLEHMANN on 2016-02-26)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.01"
>3.01
  (MLEHMANN on 2013-10-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-3.0"
>3.0
  (MLEHMANN on 2013-10-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.34"
>2.34
  (MLEHMANN on 2013-05-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.33"
>2.33
  (MLEHMANN on 2012-08-01)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.32"
>2.32
  (MLEHMANN on 2011-08-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.31"
>2.31
  (MLEHMANN on 2011-07-27)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.3"
>2.3
  (MLEHMANN on 2010-08-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.29"
>2.29
  (MLEHMANN on 2010-03-17)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.28"
>2.28
  (MLEHMANN on 2010-03-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.27"
>2.27
  (MLEHMANN on 2010-01-07)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.26"
>2.26
  (MLEHMANN on 2009-10-10)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.25"
>2.25
  (MLEHMANN on 2009-08-08)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.24"
>2.24
  (MLEHMANN on 2009-05-30)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.232"
>2.232
  (MLEHMANN on 2009-02-22)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2311"
>2.2311
  (MLEHMANN on 2009-02-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.231"
>2.231
  (MLEHMANN on 2008-11-20)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.23"
>2.23
  (MLEHMANN on 2008-09-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2222"
>2.2222
  (MLEHMANN on 2008-07-20)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.222"
>2.222
  (MLEHMANN on 2008-07-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.22"
>2.22
  (MLEHMANN on 2008-07-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.21"
>2.21
  (MLEHMANN on 2008-06-03)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.2"
>2.2
  (MLEHMANN on 2008-04-16)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.1"
>2.1
  (MLEHMANN on 2008-03-19)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.01"
>2.01
  (MLEHMANN on 2007-12-05)</option>
<option
  
  value="MLEHMANN/JSON-XS-2.0"
>2.0
  (MLEHMANN on 2007-12-04)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.53"
>1.53
  (MLEHMANN on 2007-11-13)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.52"
>1.52
  (MLEHMANN on 2007-10-15)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.51"
>1.51
  (MLEHMANN on 2007-10-13)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.5"
>1.5
  (MLEHMANN on 2007-08-28)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.44"
>1.44
  (MLEHMANN on 2007-08-21)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.43"
>1.43
  (MLEHMANN on 2007-07-26)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.42"
>1.42
  (MLEHMANN on 2007-07-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.41"
>1.41
  (MLEHMANN on 2007-07-10)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.4"
>1.4
  (MLEHMANN on 2007-07-02)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.3"
>1.3
  (MLEHMANN on 2007-06-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.24"
>1.24
  (MLEHMANN on 2007-06-11)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.23"
>1.23
  (MLEHMANN on 2007-06-06)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.22"
>1.22
  (MLEHMANN on 2007-05-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.21"
>1.21
  (MLEHMANN on 2007-05-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.2"
>1.2
  (MLEHMANN on 2007-05-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.11"
>1.11
  (MLEHMANN on 2007-04-09)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.1"
>1.1
  (MLEHMANN on 2007-04-04)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.01"
>1.01
  (MLEHMANN on 2007-03-31)</option>
<option
  
  value="MLEHMANN/JSON-XS-1.0"
>1.0
  (MLEHMANN on 2007-03-29)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.8"
>0.8
  (MLEHMANN on 2007-03-25)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.7"
>0.7
  (MLEHMANN on 2007-03-25)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.5"
>0.5
  (MLEHMANN on 2007-03-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.31"
>0.31
  (MLEHMANN on 2007-03-24)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.3"
>0.3
  (MLEHMANN on 2007-03-23)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.2"
>0.2
  (MLEHMANN on 2007-03-22)</option>
<option
  
  value="MLEHMANN/JSON-XS-0.1"
>0.1
  (MLEHMANN on 2007-03-22)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/JSON-XS">JSON-XS-4.03</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage three &#10;
          • 461 direct dependents &#10;          • 797 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="JSON-XS-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="JSON-XS-4.03">
    <input type="hidden" name="author" value="MLEHMANN">
    <input type="hidden" name="distribution" value="JSON-XS">
    <button type="submit" class="favorite highlight"><span>117</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="json_xs.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>117</span> ++</a>
</div>
   / <span>json_xs</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="json_xs.html#NAME">NAME</a></li>
  <li><a href="json_xs.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="json_xs.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="json_xs.html#OPTIONS">OPTIONS</a></li>
  <li><a href="json_xs.html#EXAMPLES">EXAMPLES</a></li>
  <li><a href="json_xs.html#AUTHOR">AUTHOR</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>json_xs - JSON::XS commandline utility</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>   json_xs [-v] [-f inputformat] [-t outputformat]</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p><i>json_xs</i> converts between some input and output formats (one of them is JSON).</p>

<p>The default input format is <code>json</code> and the default output format is <code>json-pretty</code>.</p>

<h1 id="OPTIONS">OPTIONS</h1>

<dl>

<dt id="-v"><a id="v"></a>-v</dt>
<dd>

<p>Be slightly more verbose.</p>

</dd>
<dt id="-f-fromformat"><a id="f-fromformat"></a>-f fromformat</dt>
<dd>

<p>Read a file in the given format from STDIN.</p>

<p><code>fromformat</code> can be one of:</p>

<dl>

<dt id="json-a-json-text-encoded,-either-utf-8,-utf16-be/le,-utf32-be/le"><a id="json"></a><a id="json-a-json-text-encoded--either-utf-8--utf16-be-le--utf32-be-le"></a>json - a json text encoded, either utf-8, utf16-be/le, utf32-be/le</dt>
<dd>

</dd>
<dt id="cbor-CBOR-(RFC-7049,-CBOR::XS),-a-kind-of-binary-JSON"><a id="cbor"></a><a id="cbor-CBOR--RFC-7049--CBOR::XS--a-kind-of-binary-JSON"></a>cbor - CBOR (RFC 7049, <a href="https://metacpan.org/pod/CBOR::XS">CBOR::XS</a>), a kind of binary JSON</dt>
<dd>

</dd>
<dt id="storable-a-Storable-frozen-value"><a id="storable"></a>storable - a <a href="https://metacpan.org/pod/Storable">Storable</a> frozen value</dt>
<dd>

</dd>
<dt id="storable-file-a-Storable-file-(Storable-has-two-incompatible-formats)"><a id="storable1"></a><a id="storable-file-a-Storable-file--Storable-has-two-incompatible-formats"></a>storable-file - a <a href="https://metacpan.org/pod/Storable">Storable</a> file (Storable has two incompatible formats)</dt>
<dd>

</dd>
<dt id="bencode-use-Convert::Bencode,-if-available-(used-by-torrent-files,-among-others)"><a id="bencode"></a><a id="bencode-use-Convert::Bencode--if-available--used-by-torrent-files--among-others"></a>bencode - use <a href="https://metacpan.org/pod/Convert::Bencode">Convert::Bencode</a>, if available (used by torrent files, among others)</dt>
<dd>

</dd>
<dt id="clzf-Compress::LZF-format-(requires-that-module-to-be-installed)"><a id="clzf"></a><a id="clzf-Compress::LZF-format--requires-that-module-to-be-installed"></a>clzf - <a href="https://metacpan.org/pod/Compress::LZF">Compress::LZF</a> format (requires that module to be installed)</dt>
<dd>

</dd>
<dt id="eval-evaluate-the-given-code-as-(non-utf-8)-Perl,-basically-the-reverse-of-&quot;-t-dump&quot;"><a id="eval"></a><a id="eval-evaluate-the-given-code-as--non-utf-8--Perl--basically-the-reverse-of---t-dump"></a>eval - evaluate the given code as (non-utf-8) Perl, basically the reverse of &quot;-t dump&quot;</dt>
<dd>

</dd>
<dt id="yaml-YAML-format-(requires-that-module-to-be-installed)"><a id="yaml"></a><a id="yaml-YAML-format--requires-that-module-to-be-installed"></a>yaml - <a href="YAML.html">YAML</a> format (requires that module to be installed)</dt>
<dd>

</dd>
<dt id="string-do-not-attempt-to-decode-the-file-data"><a id="string"></a>string - do not attempt to decode the file data</dt>
<dd>

</dd>
<dt id="none-nothing-is-read,-creates-an-undef-scalar-mainly-useful-with-e"><a id="none"></a><a id="none-nothing-is-read--creates-an-undef-scalar-mainly-useful-with-e"></a>none - nothing is read, creates an <code>undef</code> scalar - mainly useful with <code>-e</code></dt>
<dd>

</dd>
</dl>

</dd>
<dt id="-t-toformat"><a id="t-toformat"></a>-t toformat</dt>
<dd>

<p>Write the file in the given format to STDOUT.</p>

<p><code>toformat</code> can be one of:</p>

<dl>

<dt id="json,-json-utf-8-json,-utf-8-encoded"><a id="json1"></a><a id="json--json-utf-8-json--utf-8-encoded"></a>json, json-utf-8 - json, utf-8 encoded</dt>
<dd>

</dd>
<dt id="json-pretty-as-above,-but-pretty-printed"><a id="json2"></a><a id="json-pretty-as-above--but-pretty-printed"></a>json-pretty - as above, but pretty-printed</dt>
<dd>

</dd>
<dt id="json-utf-16le,-json-utf-16be-little-endian/big-endian-utf-16"><a id="json3"></a><a id="json-utf-16le--json-utf-16be-little-endian-big-endian-utf-16"></a>json-utf-16le, json-utf-16be - little endian/big endian utf-16</dt>
<dd>

</dd>
<dt id="json-utf-32le,-json-utf-32be-little-endian/big-endian-utf-32"><a id="json4"></a><a id="json-utf-32le--json-utf-32be-little-endian-big-endian-utf-32"></a>json-utf-32le, json-utf-32be - little endian/big endian utf-32</dt>
<dd>

</dd>
<dt id="cbor-CBOR-(RFC-7049,-CBOR::XS),-a-kind-of-binary-JSON1"><a id="cbor1"></a><a id="cbor-CBOR--RFC-7049--CBOR::XS--a-kind-of-binary-JSON1"></a>cbor - CBOR (RFC 7049, <a href="https://metacpan.org/pod/CBOR::XS">CBOR::XS</a>), a kind of binary JSON</dt>
<dd>

</dd>
<dt id="cbor-packed-CBOR-using-extensions-to-make-it-smaller"><a id="cbor2"></a>cbor-packed - CBOR using extensions to make it smaller</dt>
<dd>

</dd>
<dt id="storable-a-Storable-frozen-value-in-network-format"><a id="storable2"></a>storable - a <a href="https://metacpan.org/pod/Storable">Storable</a> frozen value in network format</dt>
<dd>

</dd>
<dt id="storable-file-a-Storable-file-in-network-format-(Storable-has-two-incompatible-formats)"><a id="storable3"></a><a id="storable-file-a-Storable-file-in-network-format--Storable-has-two-incompatible-formats"></a>storable-file - a <a href="https://metacpan.org/pod/Storable">Storable</a> file in network format (Storable has two incompatible formats)</dt>
<dd>

</dd>
<dt id="bencode-use-Convert::Bencode,-if-available-(used-by-torrent-files,-among-others)1"><a id="bencode1"></a><a id="bencode-use-Convert::Bencode--if-available--used-by-torrent-files--among-others1"></a>bencode - use <a href="https://metacpan.org/pod/Convert::Bencode">Convert::Bencode</a>, if available (used by torrent files, among others)</dt>
<dd>

</dd>
<dt id="clzf-Compress::LZF-format"><a id="clzf1"></a>clzf - <a href="https://metacpan.org/pod/Compress::LZF">Compress::LZF</a> format</dt>
<dd>

</dd>
<dt id="yaml-YAML::XS-format"><a id="yaml1"></a>yaml - <a href="./YAML::XS.html">YAML::XS</a> format</dt>
<dd>

</dd>
<dt id="dump-Data::Dump"><a id="dump"></a>dump - <a href="https://metacpan.org/pod/Data::Dump">Data::Dump</a></dt>
<dd>

</dd>
<dt id="dumper-Data::Dumper"><a id="dumper"></a>dumper - <a href="https://metacpan.org/pod/Data::Dumper">Data::Dumper</a></dt>
<dd>

</dd>
<dt id="string-writes-the-data-out-as-if-it-were-a-string"><a id="string1"></a>string - writes the data out as if it were a string</dt>
<dd>

</dd>
<dt id="none-nothing-gets-written,-mainly-useful-together-with-e"><a id="none1"></a><a id="none-nothing-gets-written--mainly-useful-together-with-e"></a>none - nothing gets written, mainly useful together with <code>-e</code></dt>
<dd>

<p>Note that Data::Dumper doesn&#39;t handle self-referential data structures correctly - use &quot;dump&quot; instead.</p>

</dd>
</dl>

</dd>
<dt id="-e-code"><a id="e-code"></a>-e code</dt>
<dd>

<p>Evaluate perl code after reading the data and before writing it out again - can be used to filter, create or extract data. The data that has been written is in <code>$_</code>, and whatever is in there is written out afterwards.</p>

</dd>
</dl>

<h1 id="EXAMPLES">EXAMPLES</h1>

<pre><code>   json_xs -t none &lt;isitreally.json</code></pre>

<p>&quot;JSON Lint&quot; - tries to parse the file <i>isitreally.json</i> as JSON - if it is valid JSON, the command outputs nothing, otherwise it will print an error message and exit with non-zero exit status.</p>

<pre><code>   &lt;src.json json_xs &gt;pretty.json</code></pre>

<p>Prettify the JSON file <i>src.json</i> to <i>dst.json</i>.</p>

<pre><code>   json_xs -f storable-file &lt;file</code></pre>

<p>Read the serialised Storable file <i>file</i> and print a human-readable JSON version of it to STDOUT.</p>

<pre><code>   json_xs -f storable-file -t yaml &lt;file</code></pre>

<p>Same as above, but write YAML instead (not using JSON at all :)</p>

<pre><code>   json_xs -f none -e &#39;$_ = [1, 2, 3]&#39;</code></pre>

<p>Dump the perl array as UTF-8 encoded JSON text.</p>

<pre><code>   &lt;torrentfile json_xs -f bencode -e &#39;$_ = join &quot;\n&quot;, map @$_, @{$_-&gt;{&quot;announce-list&quot;}}&#39; -t string</code></pre>

<p>Print the tracker list inside a torrent file.</p>

<pre><code>   lwp-request http://cpantesters.perl.org/show/JSON-XS.json | json_xs</code></pre>

<p>Fetch the cpan-testers result summary <code>JSON::XS</code> and pretty-print it.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Copyright (C) 2008 Marc Lehmann &lt;json@schmorp.de&gt;</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install JSON::XS, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm JSON::XS</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install JSON::XS</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="json_xs.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
